package com.xc.shopping_font.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xc.shopping_font.entity.HomeCategory;
import com.xc.shopping_font.entity.dto.HomeGoodsSaleDto;
import com.xc.shopping_font.mapper.HomeCategoryMapper;
import com.xc.shopping_font.service.HomeCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class HomeCategoryServiceImpl extends ServiceImpl<HomeCategoryMapper, HomeCategory> implements HomeCategoryService {


    @Resource
     private HomeCategoryMapper homeCategoryMapper;


    @Override
    public List<HomeGoodsSaleDto> getGoodsSale() {
        return homeCategoryMapper.getHomeCategoryWithProduct();
    }





}
